home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume20 / notation / patch01 < prev    next >
Encoding:
Text File  |  1991-06-28  |  8.3 KB  |  258 lines

  1. Newsgroups: comp.sources.misc
  2. From: Henry Thomas <hthomas@irisa.fr>
  3. Subject:  v20i071:  Chess text converter, Patch01
  4. Message-ID: <1991Jun27.173045.987@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 2d06c5da86ce5ba0dbfec79a263413a4
  6. Date: Thu, 27 Jun 1991 17:30:45 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Henry Thomas <hthomas@irisa.fr>
  10. Posting-number: Volume 20, Issue 71
  11. Archive-name: notation/patch01
  12. Patch-To: notation: Volume 20, Issue 52-55
  13.  
  14. The recent post of notation was missing the file chesssymb.tex.
  15. There was also an error in the Makefile of the notation package: 
  16. an obsolete file was referenced.  Here is the corrected Makefile
  17. and the missing file.
  18.  
  19. To install this, unshar the two files and copy them into the 
  20. notation sources directory. If you unshar this in the notation
  21. sources directory, be sure to rename the existing Makefile to 
  22. Makefile.orig prior to unsharing.
  23. --
  24. #! /bin/sh
  25. # This is a shell archive.  Remove anything before this line, then feed it
  26. # into a shell via "sh file" or similar.  To overwrite existing files,
  27. # type "sh file -c".
  28. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  29. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  30. # Contents:  Makefile Part01 chesssymb.tex
  31. # Wrapped by kent@sparky on Thu Jun 27 11:16:42 1991
  32. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  33. echo If this archive is complete, you will see the following message:
  34. echo '          "shar: End of archive 1 (of 1)."'
  35. if test -f 'Makefile' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'Makefile'\"
  37. else
  38.   echo shar: Extracting \"'Makefile'\" \(2913 characters\)
  39.   sed "s/^X//" >'Makefile' <<'END_OF_FILE'
  40. X# Makefile for notation program
  41. X# (C) Henry Thomas 1990
  42. X
  43. XFILES      = notation.c drivers.c lexer.c lexer.l
  44. XHEADERS       = notation.h drivers.h lexer.h chesstype.h chesssymb.def
  45. X#LIBDIR     = ./lib
  46. XLIBDIR     = .
  47. XBINDIR=$(HOME)/local/bin.$(HOSTTYPE)
  48. X
  49. XOBJECTS    = notation.o drivers.o lexer.o
  50. X
  51. XOTHERFILES = Makefile HELPFILE \
  52. X    keywords.txt algebric.txt shortened.txt boudy.txt\
  53. X    notation.doc notation.n \
  54. X    README TODO COPYING CHANGES \
  55. X    print-ps \
  56. X    Header.ps Footer.ps Header.tex \
  57. X    convsymb.txt convsymb.tex \
  58. X    symboles.txt symboles.tex symb.tex
  59. X
  60. X
  61. XSAVEFILES  = $(FILES) $(HEADERS) $(OTHERFILES)
  62. X
  63. XKITNAME       = "Notation"
  64. X
  65. X############################################################
  66. X# you might want to define the lib path : 
  67. X#    do not forget the trailing /
  68. X# ( the library is the place where the HELPFILE, Heading, fonts etc are)
  69. X# also you can have default language for input/ouput
  70. X# define DEFAULT_INPUT_LANGUAGE and DEFAULT_OUPUT_LANGUAGE
  71. X# value can be:
  72. X#    FRENCH, ENGLISH, GERMAN, ITALIAN, SPANISH, DUTCH
  73. X# ANSI C/ TURBO C (MSDOS)
  74. X# to compile with TURBO C or ANSI C, define TURBOC
  75. XCFLAGS     = -DLIB_DIR=\"$(HOME)/echecs/Notation/\" \
  76. X-DDEFAULT_INPUT_LANGUAGE=FRENCH -DDEFAULT_OUTPUT_LANGUAGE=FRENCH 
  77. XLDFLAGS    =
  78. X
  79. X
  80. XLEX= flex
  81. X
  82. X#CC= gcc -ansi -pedantic
  83. X
  84. X############################################################
  85. X
  86. X.KEEPSTATE:
  87. X
  88. Xall: notation notation.doc symboles.txt
  89. X
  90. Xlexer.c: lexer.l chesstype.h
  91. X    $(LEX) -t lexer.l > lexer.c
  92. X
  93. Xnotation: $(OBJECTS)
  94. X    $(CC) $(CFLAGS) -o notation  $(OBJECTS) 
  95. X
  96. Xsymboles.txt:  chesssymb.def convsymb.txt
  97. X    /lib/cpp -P convsymb.txt| sed -e "s/\\\\//" |\
  98. X    sed -e 's/\"//g' | cat -s > symboles.txt
  99. X
  100. Xsymb.tex:  chesssymb.def convsymb.tex
  101. X    /lib/cpp -P convsymb.tex | sed -e 's/\\\\/\\/g' |\
  102. X    sed -e 's/\"//g' | cat -s > symb.tex
  103. Xsymboles.dvi: symboles.tex symb.tex
  104. X    latex symboles.tex
  105. X
  106. Xkit     : $(SAVEFILES)
  107. X    makekit -n$(KITNAME) $(LIBDIR) $(SAVEFILES) MANIFEST > MANIFEST
  108. X
  109. Xshar     : $(SAVEFILES)
  110. X    shar -o$(KITNAME).shar $(LIBDIR) $(SAVEFILES) 
  111. X    compress -f $(KITNAME).shar
  112. X
  113. Xtar     : $(SAVEFILES)
  114. X    tar -cvf - $(SAVEFILES) > $(KITNAME).tar
  115. X    compress -f $(KITNAME).tar
  116. X
  117. Xzoo    : $(SAVEFILES)
  118. X#    chmod +w $(KITNAME).zoo
  119. X    zoo -freshen $(KITNAME).zoo $(SAVEFILES)
  120. X    rm -f $(KITNAME).bak
  121. X#    chmod -w $(KITNAME).zoo
  122. X
  123. Xsauve   :
  124. X    make zoo
  125. X#    chmod +w $(KITNAME).zoo
  126. X    cp $(KITNAME).zoo $(HOME)/local/sauve
  127. X#    chmod -w $(KITNAME).zoo
  128. X
  129. Xinstall: HELPFILE
  130. X    make notation
  131. X    strip notation
  132. X    chmod +x print-ps
  133. X    make notation.doc 
  134. X    make symboles.txt
  135. X
  136. Xhthomas:
  137. X    make install
  138. X    mv notation $(BINDIR)
  139. X
  140. Xclean:
  141. X    rm -f notation $(OBJECTS) lexer.c
  142. X    rm -f $(KITNAME).shar[.Z] $(KITNAME).tar[.Z] $(KITNAME)0? MANIFEST
  143. X
  144. Xnotation.doc: notation.n
  145. X    nroff -man notation.n > notation.doc
  146. X
  147. X
  148. X# DO NOT DELETE THIS LINE -- make depend depends on it.
  149. X
  150. Xdrivers.o: chesstype.h notation.h drivers.h chesssymb.def
  151. Xlexer.o: chesstype.h notation.h lexer.h chesssymb.def
  152. Xnotation.o: chesstype.h drivers.h notation.h lexer.h chesssymb.def
  153. END_OF_FILE
  154.   if test 2913 -ne `wc -c <'Makefile'`; then
  155.     echo shar: \"'Makefile'\" unpacked with wrong size!
  156.   fi
  157.   # end of 'Makefile'
  158. fi
  159. if test -f 'Part01' -a "${1}" != "-c" ; then 
  160.   echo shar: Will not clobber existing file \"'Part01'\"
  161. else
  162.   echo shar: Extracting \"'Part01'\" \(0 characters\)
  163.   sed "s/^X//" >'Part01' <<'END_OF_FILE'
  164. END_OF_FILE
  165.   if test 0 -ne `wc -c <'Part01'`; then
  166.     echo shar: \"'Part01'\" unpacked with wrong size!
  167.   fi
  168.   # end of 'Part01'
  169. fi
  170. if test -f 'chesssymb.tex' -a "${1}" != "-c" ; then 
  171.   echo shar: Will not clobber existing file \"'chesssymb.tex'\"
  172. else
  173.   echo shar: Extracting \"'chesssymb.tex'\" \(1938 characters\)
  174.   sed "s/^X//" >'chesssymb.tex' <<'END_OF_FILE'
  175. X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  176. X%% CHESS FIGURES FONT
  177. X\font\figchess=chessfig10
  178. X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  179. X%% COMMENTS
  180. X\newcommand{\COMwsb}{$\underline{\pm}$}
  181. X\newcommand{\COMbsb}{$\overline{\mp}$}
  182. X\newcommand{\COMwbe}{$\pm$}
  183. X\newcommand{\COMbbe}{$\mp$}
  184. X\newcommand{\COMwda}{$+-$}
  185. X\newcommand{\COMbda}{$-+$}
  186. X\newcommand{\COMlev}{$=$}
  187. X\newcommand{\COMucr}{$\infty$}
  188. X\newcommand{\COMwco}{$\overline{\overline{\infty}}$}
  189. X\newcommand{\COMdad}{$\bigcirc\!\!\!\!\!\!\!\nearrow$}
  190. X\newcommand{\COMspa}{$\bigcirc$}
  191. X\newcommand{\COMwta}{$\rightarrow$}
  192. X\newcommand{\COMwin}{$\uparrow$}
  193. X\newcommand{\COMwcp}{$\stackrel{\textstyle \leftarrow}{\rightarrow}$}
  194. X\newcommand{\COMzug}{$\bigodot$}
  195. X\newcommand{\COMmat}{\#}
  196. X\newcommand{\COMwti}{$\triangle$}
  197. X\newcommand{\COMolm}{$\Box$}
  198. X\newcommand{\COMbei}{$\underline{\frown}$}
  199. X\newcommand{\COMfil}{$\Leftrightarrow$}
  200. X\newcommand{\COMdia}{$\nearrow$}
  201. X\newcommand{\COMcnt}{\setlength{\unitlength}{0.8em}%
  202. X\begin{picture}(1,1)(0,0)\multiput(0,0)(0,0.5){3}{\line(1,0){1}}
  203. X\multiput(0,0)(0.5,0){3}{\line(0,1){1}}\end{picture}}
  204. X\newcommand{\COMkgs}{$\gg$}
  205. X\newcommand{\COMqns}{$\ll$}
  206. X\newcommand{\COMwkp}{$\times$}
  207. X\newcommand{\COMend}{$\bot$}
  208. X\newcommand{\BBox}{\rule{1.2ex}{1.2ex}}
  209. X\newcommand{\BBoxRaised}{\raisebox{0.3ex}{\rule{1.2ex}{1.2ex}}}
  210. X%\newcommand{\COMpob}{$\stackrel{\textstyle\;\Box}{\Box}$}
  211. X\newcommand{\COMpob}{$\Box\!\!\!\raisebox{0.7ex}{$\Box$}$}
  212. X\newcommand{\COMopc}{$\Box\!\!\raisebox{1ex}{\BBox}$}
  213. X\newcommand{\COMscb}{$\BBox\!\raisebox{0.7ex}{\BBox}$}
  214. X\newcommand{\COMunp}{$\circ\!\circ$}
  215. X\newcommand{\COMsep}{$\circ..\circ$}
  216. X\newcommand{\COMdop}{$\stackrel{\textstyle\circ}{\circ}$}
  217. X\newcommand{\COMtim}{$\oplus$}
  218. X\newcommand{\COMwit}{$|\!\raisebox{-1.1ex}{---}$}
  219. X\newcommand{\COMwto}{$\raisebox{-1.1ex}{---}\!|$}
  220. X\newcommand{\COMetc}{$\|$}
  221. X\newcommand{\COMsee}{$\raisebox{-1.1ex}{---}$}
  222. X%% END DEFS
  223. X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  224. END_OF_FILE
  225.   if test 1938 -ne `wc -c <'chesssymb.tex'`; then
  226.     echo shar: \"'chesssymb.tex'\" unpacked with wrong size!
  227.   fi
  228.   # end of 'chesssymb.tex'
  229. fi
  230. echo shar: End of archive 1 \(of 1\).
  231. cp /dev/null ark1isdone
  232. MISSING=""
  233. for I in 1 ; do
  234.     if test ! -f ark${I}isdone ; then
  235.     MISSING="${MISSING} ${I}"
  236.     fi
  237. done
  238. if test "${MISSING}" = "" ; then
  239.     echo You have the archive.
  240.     rm -f ark[1-9]isdone
  241. else
  242.     echo You still must unpack the following archives:
  243.     echo "        " ${MISSING}
  244. fi
  245. exit 0
  246. --
  247. Henry Thomas - IRISA          - E-mail: Henry.Thomas@irisa.fr 
  248. Campus Universitaire de Beaulieu - Phone: (+33)99 36 20 00 +549  
  249. 35042 RENNES CEDEX FRANCE      - Fax: (+33)99 38 38 32 Telex: UNIRISA 950473F
  250. Telex Atlas X400: /X121=842950473/@atlas.fr, Fax:/X121=200099383832/@atlas.fr
  251.  
  252. exit 0 # Just in case...
  253. -- 
  254. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  255. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  256. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  257. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  258.